<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>发布新闻</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript"
	src="<%=basePath%>js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="<%=basePath%>fckeditor/fckeditor.js"></script>
<!--载入fckeditor类-->

<script type="text/javascript">
   	window.onload = function(){
      	var oFCKeditor = new FCKeditor( 'newsContent' ) ;
      	oFCKeditor.BasePath = "./fckeditor/" ;
      	oFCKeditor.ReplaceTextarea() ;
	}
</script>


</head>

<body
	style="
	background: url(<%=basePath%>img/bg.jpg) -200px -83px;
	background-attachment: fixed;">
<div style="border: solid 1px #4B6DA3">
<form action="<%=basePath%>NewsServlet?action=add" method="post">
<table class="TableBlock" width="100%" cellpadding="0" cellspacing="0"
	border="1px" style="border: solid 1px #4B6DA3">
	<tr>
		<td colspan="2" class="TableHeader">
		<h3 style="text-align: center">发布新闻</h3>
		</td>
	</tr>
	<tr>
		<td class="TableData" width="200px">主题：</td>
		<td class="TableData"><input type="text" name="newsTitle"
			size="50" /></td>
	</tr>

	<tr>
		<td class="TableData">时间：</td>
		<td class="TableData"><input type="text" name="publishTime"
			size="20" class="wdate" onClick="WdatePicker()" /></td>
	</tr>

	<tr>
		<td class="TableData">内容：</td>
		<td class="TableData"><textarea name="newsContent"
			id="newsContent"></textarea></td>
	</tr>
	<tr align="center" class="TableControl">

		<td colspan="2"><input type="submit" value="发布新闻"
			class="BigButton"></td>
	</tr>
</table>
</form>
</div>
</body>
</html>
